<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
    <link rel="icon" th:href="@{/static/console/common/images/favicon.ico}">
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/common/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/static/css/element/index.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/css/public.css}"/>
    <link rel="stylesheet" type="text/css" th:href="@{/static/console/datepicker/jquery-datePicker.css}"/>
    <link rel="stylesheet" th:href="@{/static/cloud/css/iconfont.css}" type="text/css"/>
    <title>仓位信息表</title>
    <style>

        .addModal .msgBox {
            width: 100%;
            height: 100%;
            left: 10%;
            bottom: inherit;
            overflow: auto;
        }

        .updateModal .msgBox {
            width: 100%;
            height: 100%;
            left: 10%;
            bottom: inherit;
            overflow: auto;
        }
        .lineModal .msgBox {
            width: 100%;
            height: 100%;
            left: 10%;
            bottom: inherit;
            overflow: auto;
        }

    </style>
</head>
<script th:inline="javascript">
    const orgList = [[${orgList}]]
</script>
<body>
<input th:value="${menuRole.isDelete}" class="isDelete" style="display: none"/>
<input th:value="${menuRole.isUpdate}" class="isUpdate" style="display: none"/>
<input th:value="${menuRole.isInsert}" class="isInsert" style="display: none"/>
<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action="">
            <div class="layui-form-item">
                <div class="layui-form-item layui-inline">
                    <div class="layui-input-inline">
                        <input type="text" placeholder="检索关键字" class="layui-input search-text">
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-origin" lay-filter="search-origin">
                            <!--                            <option value="">选择公司</option>-->
                            <option th:value="${org.id}" th:text="${org.originName}" th:each="org:${orgList}"></option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-line" lay-filter="search-line">
<!--                            <option value="">状态</option>-->
<!--                            <option value="0">启用</option>-->
<!--                            <option value="1">禁用</option>-->
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-status" lay-filter="search-status">
                            <option value="">状态</option>
                            <option value="0">启用</option>
                            <option value="1">禁用</option>
                        </select>
                    </div>
                </div>
                <div class="layui-inline">
                    <div class="layui-input-inline">
                        <select class="search-type" lay-filter="search-type">
                            <option value="">仓位类型</option>
                            <option value="0">筒仓</option>
                            <option value="1">堆场</option>
                        </select>
                    </div>
                </div>
                <div class="layui-form-item layui-inline">
                    <a href="javascript:void(0)" class="layui-btn layui-btn-md layui-btn-danger btn-query"
                       lay-filter="btn-query">
                        <i class="layui-icon layui-icon-search"></i>
                        查询
                    </a>
                    <a href="javascript:void(0)" type="reset" class="layui-btn btn-add" lay-filter="btn-add">
                        <i class="layui-icon">&#xe654;</i>
                        添加
                    </a>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="layui-card">
    <div class="layui-card-body">
        <table class="layui-hide" id="body-list" lay-filter="body-list"></table>
    </div>
</div>

<!--新增-->
<div class="msgModal addModal" id="add-mainDiscount-body">
    <div class="msgBox">
        <div class="msgBox-title">
            <h3 style="text-align: left; padding-left: 80px;">新增仓位信息</h3>
            <a class="close" href="javascript:void(0);"><img src="/static/console/img/close-btn.png"/></a>
        </div>
        <div class="msgBox-con">
            <form class="layui-form" style="width: 100%;">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">公司</label>
                        <div class="layui-input-inline">
                            <select class="add-search-origin" lay-filter="add-search-origin" lay-verify="required"
                                    lay-reqText="请选择公司">
                                <option th:value="${org.id}" th:text="${org.originName}"
                                        th:each="org:${orgList}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">是否共享仓</label>
                        <div class="layui-input-inline">
                            <select class="add-isEnjoy" lay-filter="add-isEnjoy" lay-verify="required" lay-reqText="请选择是否共享仓" lay-search="">
                                <option value="">请先是否共享仓</option>
                                <option value="0">共享仓</option>
                                <option value="1">非共享仓</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">是否显示库存</label>
                        <div class="layui-input-inline">
                            <select class="add-isStore" lay-filter="add-isStore" lay-verify="required" lay-reqText="请选择是否显示库存" lay-search="">
                                <option value="">请先是否显示库存</option>
                                <option value="0">显示</option>
                                <option value="1">不显示</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">是否参与盘存</label>
                        <div class="layui-input-inline">
                            <select class="add-isInventory" lay-filter="add-isInventory" lay-verify="required" lay-reqText="请选择是否参与盘存" lay-search="">
                                <option value="">请先是否参与盘存</option>
                                <option value="0">是</option>
                                <option value="1">否</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">仓位类型</label>
                        <div class="layui-input-inline">
                            <select class="add-type" lay-filter="add-type" lay-verify="required" lay-reqText="请选择仓位类型" lay-search="">
                                <option value="0">筒仓</option>
                                <option value="1">堆场</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">材料</label>
                        <div class="layui-input-inline">
                            <select class="add-material" lay-filter="add-material" lay-verify="required" lay-reqText="请选择仓位类型" lay-search="">
                                <option value="">请选择材料</option>
                                <option th:value="${item.materialId}" th:data-storeType="${item.storeType}"
                                        th:text="${item.nameNorms}" th:each="item:${materialList}"></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-code" lay-verify="required" placeholder="请输入编码">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-name" lay-verify="required" placeholder="请输入名称">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">最大容量(吨)</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input add-maxCapacity" lay-verify="required" placeholder="请输入最大容量(吨)">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">盘点时间</label>
                        <div class="layui-input-inline">
                            <input type="text"  id="add-inventoryTime" class="layui-input add-inventoryTime" readonly="readonly" lay-verify="required" placeholder="请选择盘点时间">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block" style="margin-left: 80px;">
                        <textarea placeholder="请输入内容" class="layui-textarea add-remark"
                                  style="resize: none;"></textarea>
                    </div>
                </div>
                <div class="layui-form-item" id="addBtn" style="text-align: center;">
                    <div class="">
                        <a class="layui-btn btn-submit" lay-submit lay-filter="addBtns">保存</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<!--编辑-->
<div class="msgModal updateModal" id="update-mainDiscount-body">
    <div class="msgBox">
        <div class="msgBox-title">
            <h3 id="updateTitle" style="text-align: left; padding-left: 80px;">修改仓位信息</h3>
            <a class="close" href="javascript:void(0);"><img src="/static/console/img/close-btn.png"/></a>
        </div>
        <div class="msgBox-con">
            <form class="layui-form" style="width: 100%;">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">公司</label>
                        <div class="layui-input-inline">
                            <select class="update-search-origin" lay-filter="update-search-origin" lay-verify="required"
                                    lay-reqText="请选择公司">
                                <option th:value="${org.id}" th:text="${org.originName}"
                                        th:each="org:${orgList}"></option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">是否共享仓</label>
                        <div class="layui-input-inline">
                            <select class="update-isEnjoy" lay-filter="update-isEnjoy" lay-verify="required" lay-reqText="请选择是否共享仓" lay-search="">
                                <option value="">请先是否共享仓</option>
                                <option value="0">共享仓</option>
                                <option value="1">非共享仓</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">是否显示库存</label>
                        <div class="layui-input-inline">
                            <select class="update-isStore" lay-filter="update-isStore" lay-verify="required" lay-reqText="请先是否显示库存" lay-search="">
                                <option value="">请先是否显示库存</option>
                                <option value="0">显示</option>
                                <option value="1">不显示</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">是否参与盘存</label>
                        <div class="layui-input-inline">
                            <select class="update-isInventory" lay-filter="update-isInventory" lay-verify="required" lay-reqText="请选择是否参与盘存" lay-search="">
                                <option value="">请选择是否参与盘存</option>
                                <option value="0">是</option>
                                <option value="1">否</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">仓位类型</label>
                        <div class="layui-input-inline">
                            <select class="update-type" lay-filter="update-type" lay-verify="required" lay-reqText="请选择仓位类型" lay-search="">
                                <option value="0">筒仓</option>
                                <option value="1">堆场</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">材料</label>
                        <div class="layui-input-inline">
                            <select class="update-material" lay-filter="update-material" lay-verify="required" lay-reqText="请选择仓位类型" lay-search="">
                                <option value="">请选择材料</option>
                                <option th:value="${item.materialId}" th:data-storeType="${item.storeType}"
                                        th:text="${item.nameNorms}" th:each="item:${materialList}"></option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">编码</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input update-code" lay-verify="required" placeholder="请输入编码">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">名称</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input update-name" lay-verify="required" placeholder="请输入名称">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">生产线</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input update-lineName" placeholder="生产线">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label">最大容量(吨)</label>
                        <div class="layui-input-inline">
                            <input type="text" class="layui-input update-maxCapacity" lay-verify="required" placeholder="请输入最大容量(吨)">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label">盘点时间</label>
                        <div class="layui-input-inline">
                            <input type="text"  id="update-inventoryTime" class="layui-input update-inventoryTime" readonly="readonly" lay-verify="required" placeholder="请选择盘点时间">
                        </div>
                    </div>
                </div>
                <div class="layui-form-item layui-form-text">
                    <label class="layui-form-label">备注</label>
                    <div class="layui-input-block" style="margin-left: 80px;">
                        <textarea placeholder="请输入内容" class="layui-textarea update-remark"
                                  style="resize: none;"></textarea>
                    </div>
                </div>
                <div class="layui-form-item" id="updateBtn" style="text-align: center;">
                    <div class="">
                        <a class="layui-btn btn-submit" lay-submit lay-filter="updateBtns">保存</a>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

<!--编辑-->
<div class="msgModal lineModal">
    <div class="msgBox">
        <div class="msgBox-title">
            <h3 class="updateLineTitle" style="text-align: left; padding-left: 80px;">关联生产线信息</h3>
            <a class="close" href="javascript:void(0);"><img src="/static/console/img/close-btn.png"/></a>
        </div>
        <div class="msgBox-con">
            <div class="layui-card">
                <div class="layui-card-body">
                    <table class="layui-hide" id="line-body-list" lay-filter="line-body-list"></table>
                </div>
            </div>
        </div>
    </div>
</div>
</body>

<script type="text/javascript" th:src="@{/static/console/assets/js/jquery-3.2.1.min.js}"></script>
<script type="text/javascript" th:src="@{/static/console/common/layui/layui.js}"></script>
<script type="text/javascript" th:src="@{/static/console/js/pages/base.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/vue.min.js}"></script>
<script type="text/javascript" th:src="@{/static/js/element/index.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/console/datepicker/jquery-datePicker.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/jquery.qrcode.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/utf.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/print/html2canvas.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/js/print/jspdf.debug.js}" charset="utf-8"></script>
<script type="text/javascript" th:src="@{/static/console/js/pages/system/storage.js}" charset="utf-8"></script>
<script type="text/javascript">

</script>

</html>